Generating pseudo-random numbers using cellular automata

ABSTRACT

A method for using cellular automata to generate quality pseudo-random numbers, which may be used in cryptographic and other applications. A cellular automaton is a decentralized computing model that enables the performance of complex computations with the help of only local information. In general, cellular automata comprise a plurality of identical basic memory building blocks that are discrete in time and space, where the structure evolves over time according to a local transition rule. Cellular automata can be used in information security as an alternative for classic Feedback Shift Registers (FSRs) for pseudo-random sequence generation. The outputs of a pair of linear FSRs (LFSRs) act as continuous inputs to the two boundaries of a one-dimensional or two-dimensional elementary cellular automata.

This application claims benefit of and priority to U.S. Provisional Application No. 61/992,390, filed May 13, 2015, and is entitled to that filing date for priority. The specification, figures and complete disclosure of U.S. Provisional Application No. 61/992,390 are incorporated herein by specific reference for all purposes.

FIELD OF INVENTION

This invention relates to a system and related methods for using cellular automata to generate quality pseudo-random numbers, particularly for use in cryptography.

SUMMARY OF INVENTION

In various exemplary embodiments, the present invention comprises a method for using cellular automata to generate quality pseudo-random numbers, which may be used in cryptographic and other applications. A cellular automaton is a decentralized computing model that enables the performance of complex computations with the help of only local information. In general, cellular automata comprise a plurality of identical basic memory building blocks that are discrete in time and space, where the structure evolves over time according to a local transition rule. A simple structure can then evolve into an extremely complex digital structures.

Cellular automata can be used in information security as an alternative for classic Feedback Shift Registers (FSRs) for pseudo-random sequence generation. In particular, one-dimensional and two-dimensional cellular automata are used to general pseudo-random sequences with good statistical features for use in Monte Carlo simulations, communications, cryptography, and network security. In one embodiment, the outputs of a pair of linear FSRs (LFSRs) act as continuous inputs to the two boundaries of a one-dimensional elementary cellular automata.

DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a diagram of an elementary cellular automata system in accordance with an embodiment of the present invention.

FIG. 2 shows a diagram of chaotic rule 30 operating on a one-dimensional cellular automaton.

FIG. 3 shows an example of a state machine analysis table.

FIG. 4 shows an example of a state machine analysis diagram.

FIG. 5 shows an example of the spatiotemporal output of a one-dimensional cellular automaton operating with two LFSRs as boundary inputs for 100 time steps.

DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENTS

In various exemplary embodiments, the present invention comprises a method for using elementary cellular automata (ECA) to generate quality pseudo-random numbers, which may be used in cryptographic and other applications. A cellular automaton is a decentralized computing model that enables the performance of complex computations with the help of only local information. In general, cellular automata comprise a plurality of identical basic memory building blocks that are discrete in time and space, where the structure evolves over time according to a local transition rule. A simple structure can then evolve into an extremely complex digital structures.

As described herein, and in the attached appendices, cellular automata can be used in information security as an alternative for classic Feedback Shift Registers (FSRs) for pseudo-random sequence generation. In particular, one-dimensional and two-dimensional cellular automata are used to general pseudo-random sequences with good statistical features for use in Monte Carlo simulations, communications, cryptography, and network security. In one embodiment, the outputs of a pair of linear FSRs (LFSRs) 20, 30 act as continuous inputs to the two boundaries of a one-dimensional elementary cellular automata 10, as seen in FIG. 1.

FIG. 2 shows an illustration of a one dimensional cellular automaton operated on by chaotic rule 30 at the present state of neighborhood of time step t to produce the next state cell of time step t+1. The cells are arranged on a linear finite lattice, with a symmetrical neighborhood of three cells and radius r=1. Each cell takes its value from the set G={0, 1, . . . , p} and let p=2. All cells are updated synchronously and the cells are restricted to local neighborhood interaction with no global communication. The ECA will evolve according to one uniform neighborhood transition function, which is a local function (rule) ƒ: G^(2r+1)®G where the ECA evolves after a certain number of time steps T. Using rule 30 as suggested by Wolfram, it follows that a one-dimensional (1−D) ECA is a linear register of K,K Î ¥, memory cells. Each cell is represented by c^(t) _(k), where k=[1:K] and t=[1,¥), that describes the content of memory location k at time evolution step t. Since p=2 the cell takes one of two states from GF(2). This implies the applicability of Boolean algebra to the design over GF(2). A minimum Boolean representation of chaotic Rule 30 in terms of the relative neighborhood cells is: c ^(t+1) _(k) =c ^(t) _(k+1)Å(c ^(t) _(k) +c ^(t) _(k−1)) or c ^(t+1) _(i) =c ^(t) _(k+1) +c ^(t) _(k) +c ^(t) _(k−1)+(c ^(t) _(k) ×c ^(t) _(k−1))mod 2 where 2£k£K−2, as depicted in FIG. 2.

Since the ECA is actually a finite state machine, then the present state of the neighborhood of cell c^(t) _(k), (c^(t) _(k+1), c^(t) _(k), c^(t) _(k−1)) at time step t and the next state c_(k) ^(t+1), at time step t+1, can be analyzed by the state transition table (shown in FIG. 3) and the state diagram (shown in FIG. 4).

It can be seen from above that in order to evolve from the present time step t to the next time step t+1, each cell at lattice location k would require the present state of itself, c^(t) _(k), as well as the present state of the other two cells in its neighborhood, c^(t) _(k+1) and c^(t) _(k−1). Therefore, if the ECA is allowed to expand freely, leftwise and rightwise, the total number of cells at each time step t+1, say K∈N would need K+2 cells at time step t. The eventually leads to an unpractical span of the ECA, hence the ECA should be bounded. However, fixed boundary conditions lead to poor randomization, and thus prevent the bounded ECA from being used as a source of generating random numbers.

In one embodiment, as seen in FIG. 1, the present invention comprises a bounded one-dimensional ECA 10, with a pair of LFSRs 20, 30 acting as continuous inputs to the extreme boundary cells of the ECA (i.e, each LFSR acts as input to a corresponding boundary cell). The LFSRs may be uncorrelated, run independently and synchronously, and are used to generate the two boundary conditions. In the diagram shown, the most significant cell is the extreme left hand cell 12, and the least significant cell is the extreme right hand cell 14, although in other configurations the opposite may be true. The output string of the center bit of the ECA evolving for time steps T=2^(K), where K is the span length of the ECA, passes the Diehard statistical battery of tests, and can be used for parallel random number generation in computer systems and applications. Good results have been achieved with spans as low as 27 bits. An example of a spatiotemporal output of a one-dimensional ECA span 31-bit with two LFSRs as boundary inputs is seen in FIG. 5.

The technique described herein works with multiple-dimensioned cellular automata, and with other chaotic rules as well.

These embodiments, as well as other exemplary embodiments, as well as the tools and programs referenced above, are described in detail in the attached materials which are attached hereto as an appendix, and incorporated herein in their entirety (including all text and figures therein) by reference:

“Feedback Shift Registers as Cellular Automata Boundary Conditions” (11 pages) (unpaginated)

“Feedback Shift Registers as Cellular Automata Boundary Conditions,” CS&IT (11 pages)

“Elementary Cellular Automata (ECA) Research platform,” Cyber Journals (15 pages)

“Analysis of Elementary Cellular Automata Boundary Conditions,” IJCSIT (17 pages)

In order to provide a context for the various computer-related aspects of the invention, the following discussion provides a brief, general description of a suitable computing environment in which several aspects of the present invention may be implemented. A computing system environment is one example of a suitable computing environment, but is not intended to suggest any limitation as to the scope of use or functionality of the invention. A computing environment may contain any one or combination of components discussed below, and may contain additional components, or some of the illustrated components may be absent. Various embodiments of the invention are operational with numerous general purpose or special purpose computing systems, environments or configurations. Examples of computing systems, environments, or configurations that may be suitable for use with various embodiments of the invention include, but are not limited to, personal computers, laptop computers, computer servers, computer notebooks, hand-held devices, microprocessor-based systems, multiprocessor systems, TV set-top boxes and devices, programmable consumer electronics, cell phones, personal digital assistants (PDAs), tablets, smart phones, touch screen devices, smart TV, internet enabled appliances, internet enabled security systems, internet enabled gaming systems, internet enabled watches; internet enabled cars (or transportation), network PCs, minicomputers, mainframe computers, embedded systems, virtual systems, distributed computing environments, streaming environments, volatile environments, and the like.

Embodiments of the invention may be implemented in the form of computer-executable instructions, such as program code or program modules, being executed by a computer, virtual computer, or computing device. Program code or modules may include programs, objections, components, data elements and structures, routines, subroutines, functions and the like. These are used to perform or implement particular tasks or functions. Embodiments of the invention also may be implemented in distributed computing environments. In such environments, tasks are performed by remote processing devices linked via a communications network or other data transmission medium, and data and program code or modules may be located in both local and remote computer storage media including memory storage devices such as, but not limited to, hard drives, solid state drives (SSD), flash drives, USB drives, optical drives, and internet-based storage (e.g., “cloud” storage).

In one embodiment, a computer system comprises multiple client devices in communication with one or more server devices through or over a network, although in some cases no server device is used. In various embodiments, the network may comprise the Internet, an intranet, Wide Area Network (WAN), or Local Area Network (LAN). It should be noted that many of the methods of the present invention are operable within a single computing device.

A client device may be any type of processor-based platform that is connected to a network and that interacts with one or more application programs. The client devices each comprise a computer-readable medium in the form of volatile and/or nonvolatile memory such as read only memory (ROM) and random access memory (RAM) in communication with a processor. The processor executes computer-executable program instructions stored in memory. Examples of such processors include, but are not limited to, microprocessors, ASICs, and the like.

Client devices may further comprise computer-readable media in communication with the processor, said media storing program code, modules and instructions that, when executed by the processor, cause the processor to execute the program and perform the steps described herein. Computer readable media can be any available media that can be accessed by computer or computing device and includes both volatile and nonvolatile media, and removable and non-removable media. Computer-readable media may further comprise computer storage media and communication media. Computer storage media comprises media for storage of information, such as computer readable instructions, data, data structures, or program code or modules. Examples of computer-readable media include, but are not limited to, any electronic, optical, magnetic, or other storage or transmission device, a floppy disk, hard disk drive, CD-ROM, DVD, magnetic disk, memory chip, ROM, RAM, EEPROM, flash memory or other memory technology, an ASIC, a configured processor, CDROM, DVD or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium from which a computer processor can read instructions or that can store desired information. Communication media comprises media that may transmit or carry instructions to a computer, including, but not limited to, a router, private or public network, wired network, direct wired connection, wireless network, other wireless media (such as acoustic, RF, infrared, or the like) or other transmission device or channel. This may include computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism. Said transmission may be wired, wireless, or both. Combinations of any of the above should also be included within the scope of computer readable media. The instructions may comprise code from any computer-programming language, including, for example, C, C++, C#, Visual Basic, Java, and the like.

Components of a general purpose client or computing device may further include a system bus that connects various system components, including the memory and processor. A system bus may be any of several types of bus structures, including, but not limited to, a memory bus or memory controller, a peripheral bus, and a local bus using any of a variety of bus architectures. Such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.

Computing and client devices also may include a basic input/output system (BIOS), which contains the basic routines that help to transfer information between elements within a computer, such as during start-up. BIOS typically is stored in ROM. In contrast, RAM typically contains data or program code or modules that are accessible to or presently being operated on by processor, such as, but not limited to, the operating system, application program, and data.

Client devices also may comprise a variety of other internal or external components, such as a monitor or display, a keyboard, a mouse, a trackball, a pointing device, touch pad, microphone, joystick, satellite dish, scanner, a disk drive, a CD-ROM or DVD drive, or other input or output devices. These and other devices are typically connected to the processor through a user input interface coupled to the system bus, but may be connected by other interface and bus structures, such as a parallel port, serial port, game port or a universal serial bus (USB). A monitor or other type of display device is typically connected to the system bus via a video interface. In addition to the monitor, client devices may also include other peripheral output devices such as speakers and printer, which may be connected through an output peripheral interface.

Client devices may operate on any operating system capable of supporting an application of the type disclosed herein. Client devices also may support a browser or browser-enabled application. Examples of client devices include, but are not limited to, personal computers, laptop computers, personal digital assistants, computer notebooks, hand-held devices, cellular phones, mobile phones, smart phones, pagers, digital tablets, Internet appliances, and other processor-based devices. Users may communicate with each other, and with other systems, networks, and devices, over the network through the respective client devices.

Thus, it should be understood that the embodiments and examples described herein have been chosen and described in order to best illustrate the principles of the invention and its practical applications to thereby enable one of ordinary skill in the art to best utilize the invention in various embodiments and with various modifications as are suited for particular uses contemplated. Even though specific embodiments of this invention have been described, they are not to be taken as exhaustive. There are several variations that will be apparent to those skilled in the art. 

What is claimed is:
 1. A machine for improved generation of pseudo-random numbers in a computer system, comprising: a processor or microprocessor coupled to a memory, wherein the microprocessor is programmed to generate a pseudo-random number using only the output from the center bit of a bounded one-dimensional cellular automaton with a fixed span and an extreme left boundary cell and an extreme right boundary cell, wherein a left linear feedback shift register provides continuous input to the extreme left boundary cell; wherein a right linear feedback shift register provides continuous input to the extreme right boundary cell; wherein the left linear feedback shift register and the right linear feedback shift register are uncorrelated and run independently; wherein the cellular automaton is uniform.
 2. The machine of claim 1, wherein the cellular automaton has a span length of at least 27 bits.
 3. The machine of claim 1, wherein the extreme left boundary cell is the most significant cell in the cellular automaton.
 4. The machine of claim 1, wherein the extreme right boundary cell is the least significant cell in the cellular automaton.
 5. The machine of claim 1, wherein the extreme left boundary cell is the least significant cell in the cellular automaton.
 6. The machine of claim 1, wherein the extreme right boundary cell is the most significant cell in the cellular automaton.
 7. The machine of claim 1, where the output from the center bit is used after the cellular automaton has evolved for steps T=2^(K), where K is the span length of the cellular automaton.
 8. A non-transitory computer-readable storage medium with an executable program stored thereon, wherein the program instructs a processor or microprocessor to generate a pseudo-random number using only the output from the center bit of a bounded one-dimensional cellular automaton with a fixed span and an extreme left boundary cell and an extreme right boundary cell, wherein a left linear feedback shift register provides continuous input to the extreme left boundary cell, wherein a right linear feedback shift register provides continuous input to the extreme right boundary cell; wherein the left linear feedback shift register and the right linear feedback shift register are uncorrelated and run independently; and wherein the cellular automaton is uniform.
 9. The medium of claim 8, wherein the cellular automaton has a span length of at least 27 bits.
 10. The medium of claim 8, wherein the extreme left boundary cell is the most significant cell in the cellular automaton.
 11. The medium of claim 8, wherein the extreme right boundary cell is the least significant cell in the cellular automaton.
 12. The medium of claim 8, wherein the extreme left boundary cell is the least significant cell in the cellular automaton.
 13. The medium of claim 8, wherein the extreme right boundary cell is the most significant cell in the cellular automaton.
 14. The medium of claim 8, where the output from the center bit is used after the cellular automaton has evolved for steps T=2^(K), where K is the span length of the cellular automaton. 